<extend name="Base/common"/>

<block name="style">
<link href="__CSS__/stylesheet.css" rel="stylesheet">
<link href="__CSS__/user.css" rel="stylesheet">
</block>

<block name="header">
<header>
	<include file="User/header" />
</header>
</block>

<block name="body">
<div class="container main">
	<div class="user-main">
		<div class="col-xs-3">
			<include file="User/left_menu" />
		</div>
		<div class="col-xs-9">
			<h5>我的收藏</h5>
			<div class="content">
				<ul class="right-head-nav">
					<li class="selected"><a href="{:U('User/collectProduct')}">收藏的商品</a></li>
					<li><a href="{:U('User/collectShop')}">收藏的店铺</a></li>
				</ul>
				<div class="collect-list">
				<volist name="_list" id="vo">
					<div class="collect-item">
						<a href="{:U('Product/detail',array('id'=>$vo['product_id']))}" target="" title="{$vo.title}">
							<img src="__ROOT__{$vo.image_path}" />
							<p>{$vo.product_title|msubstr=0,28,'utf-8',false}</p>
							<p><em class="yen">￥</em><em class="price">{$vo.product_price|number_format=###,1}</em>
							<a href="{:U('AjaxAction/delCollect',array('id'=>$vo['id'],'type'=>'product'))}" class="del fr ajax-get"></a></p>
						</a>
					</div>
				</volist>									
				</div>
			</div>
			{$_page}
		</div>
	</div>
</div>
</block>

<block name="script">
<script type="text/javascript">
highlight_leftnav("{:U('User/collectProduct')}");
highlight_subnav("{:U('User/index')}");
</script>
</block>